<template>
  <div>
    <a-button type="primary" @click="showDrawer"> Open </a-button>
    <a-drawer
      placement="right"
      :closable="false"
      :visible="visible"
      :after-visible-change="afterVisibleChange"
      @close="onClose"
      :width="500"
    >
      <div class="top">
        <div class="top-img">
          <img src="../../assets/images/emslogo.png" alt="" />
        </div>
        <div class="top-box">
          <span>邮政快递</span><br />
          <p>快递单号：21046410962035</p>
        </div>
      </div>
      <!-- <a-divider /> -->
      <p>&nbsp;</p>
      <a-steps progress-dot :current="4" :initial="0" direction="vertical">
        <a-step title="Finished" description="This is a description. This is a description." />
        <a-step title="Finished" description="This is a description. This is a description." />
        <a-step title="In Progress" description="This is a description. This is a description." />
        <a-step title="Waiting" description="This is a description." />
        <a-step title="Waiting" description="This is a description." />
      </a-steps>
      <div style="padding-top: 15vw">
        <hr style='background-color:#ccc; height:1px; border:none'/>
        <div class="footer">
          <div>
            <img src="../../assets/images/emslogo.png" alt="" />
          </div>
          <p style="width: 1vw"></p>
          <div>xxxxx000000000000000000000000000000000000</div>
        </div>
      </div>
    </a-drawer>
  </div>
</template>

<script>
export default {
  data () {
    return {
      visible: false
    }
  },
  methods: {
    afterVisibleChange (val) {
      console.log('visible', val)
    },
    showDrawer () {
      this.visible = true
    },
    onClose () {
      this.visible = false
    }
  }
}
</script>

<style scoped lang="scss">
.top {
  display: flex;
  width: 100%;
  height: 5vw;
  background: pink;
  align-items: center;
  //   justify-content: space-around;
  .top-box {
    padding-top: 0.5vw;
    padding-left: 1vw;
  }
}
.footer {
  display: flex;
  //   justify-content: center;
  align-items: center;
}
</style>
